﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZFB.Models
{
    public class T_AdminUsers:BaseEntity
    {

        public string Name { get; set; }

        public string PhoneNum { get; set; }

        public string PasswordHash { get; set; }

        public string PasswordSalt { get; set; }

        public string Email { get; set; }

        public long? CityId { get; set; }

        public int LoginErrorTimes { get; set; }

        public DateTime? LastLoginErrorDateTime { get; set; }

        public virtual T_Cities? T_Cities { get; set; }
        public virtual List<T_AdminLogs> T_AdminLogs { get; set; } = new();
        public virtual List<T_Roles> T_Roles { get; set; } = new();
        public virtual List<T_HouseAppointments> T_HouseAppointments { get; set; } = new();
    }
}
